<?php
/* Connect to an ODBC database using driver invocation */

$user = 'root';
$password = 'Root1024$';
$host = '127.0.0.1';
$database = 'lamp';


try {
    $dbh = new mysqli($host, $user, $password, $database);
} catch (Exception $e) {
    echo 'Connection failed: ' . $e->getMessage();
    return;
}
//$result = $dbh->query("SELECT 'Hello, dear MySQL user!' AS _message FROM DUAL");
$result = $dbh->query('SELECT * FROM lamp_user LIMIT 1');
$row = null;
if ($result) {
    $row = $result->fetch_assoc();
}
var_dump($row);
